cmake_minimum_required(VERSION 2.6)
project(affineceres)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIR})
link_libraries(${OpenCV_LIBRARY_DIR})

find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})
link_libraries(${CERES_LIBRARY_DIRS})



add_executable(affineceres main.cpp)
target_link_libraries(affineceres ${OpenCV_LIBS})
target_link_libraries(affineceres ${CERES_LIBRARIES})



install(TARGETS affineceres RUNTIME DESTINATION bin)
